package com.qf.hospital.DTO;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author 何星宇
 * @version V1.0
 * @Date 2021/10/20 21:25
 */
public class ReportDTO {

    /**
     * 病人姓名
     */
    @NotBlank(message = "病人姓名为必填项，不可为空")
    private String reportName;

    /**
     * 病人性别
     */
    @NotBlank(message = "病人性别为必填项，不可为空")
    private String sex;

    /**
     * 病人年龄
     */
    @NotNull(message = "病人年龄为必填项，不可为空")
    private Integer age;


    /**
     * 就诊科室
     */
    @NotNull(message = "就诊科室为必填项，不可为空")
    private Integer department;

    /**
     * 看诊医生
     */
    @NotNull(message = "看诊医生为必填项，不可为空")
    private Integer doctor;

    /**
     * 挂号类型
     */
    @NotNull(message = "挂号类型为必填项，不可为空")
    private Integer reportType;

    /**
     * 挂号价钱
     */
    @NotNull(message = "挂号价钱为必填项，不可为空")
    private Double price;

    /**
     * 挂号时间
     */
    private Date time = new Date();

    /**
     * 录入人
     */
    private String users;

    /**
     * 0-已删除，1-已预约，2-药品缴费成功，3-药品出库，4-转入住院
     */
    private Integer state = 1;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号为必填项，不可为空")
    private String phone;

    /**
     * 身份号id
     */
    @NotBlank(message = "身份证号为必填项，不可为空")
    private String carid;

    @Override
    public String toString() {
        return "ReportDTO{" +
                "reportName='" + reportName + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", department=" + department +
                ", doctor=" + doctor +
                ", reportType=" + reportType +
                ", price=" + price +
                ", time=" + time +
                ", users='" + users + '\'' +
                ", state=" + state +
                ", phone='" + phone + '\'' +
                ", carid='" + carid + '\'' +
                '}';
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getDepartment() {
        return department;
    }

    public void setDepartmentId(Integer department) {
        this.department = department;
    }

    public Integer getDoctor() {
        return doctor;
    }

    public void setDoctorId(Integer doctor) {
        this.doctor = doctor;
    }

    public Integer getReportType() {
        return reportType;
    }

    public void setRegisterTypeId(Integer reportType) {
        this.reportType = reportType;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getUsers() {
        return users;
    }

    public void setUsers(String users) {
        this.users = users;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCarid() {
        return carid;
    }

    public void setCarid(String carid) {
        this.carid = carid;
    }
}
